interface = ""
api_url=  "hunyuan.ap-guangzhou.tencentcloudapi.com" # 混元的地域接入名。
base_url = f"{api_url}"
api_key = "sk-8wak99LI5R5E1NFV6zpoCKeMtusrIpgdHxbS6FEwYhLJWyUQ"

header = {
    "Contetx-Type": "application/json",
    "Authorization": f"Bearer {api_key}",
    "X-TC-Action": "ChatTranslation"
}

data = {
    "Model":"hunyuan-translation",
    "Stream":"false",
    "Text": "Playing video games",
    "Source":"en",
    "Target":"zh",
    "Field":"无人系统",
    "References":[
        {
            "Type":"sentence",
            "Text":"I make you have a restful night!",
            "Translation":"祝你今晚能休息好"
            },
    ],
}   
import requests as req
rep = req.post(url=base_url,)

